<template>
  <div class="editor">
      <div ref="editeContainer">
      </div>
  </div>
</template>

<script>
import E from "wangeditor"
export default {
mounted(){
    this.initEdite()
},
methods:{
    initEdite () {
        const editor = new E(this.$refs.editeContainer)
        editor.config.height = 200
        editor.config.zIndex = 1
        editor.create()
    }
}
}
</script>

<style lang='scss' scoped>
.editor{
    margin-right: 20px;
}
</style>